# file.closed：判断文件是否己经关闭。


# f=open("file.txt",'r')
# print(f.closed)
# f.close()
# print(f.closed)

with open("file.txt","r") as f:
    print(f.closed)
print(f.closed)    





# f=open('file.txt', 'r')
# print(f.closed)
# f.close()
# print(f.closed)
# print("==========")

# with open('file.txt', 'r') as f:
#     print(f.closed)
# print(f.closed)


# # CP936其实就是GBK，IBM在发明Code Page的时候将GBK放在第936页，所以叫CP936。